package start.spring.basic.report.entity;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import start.spring.basic.ry.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;


/**
 * 填报数据对象 report_fill_data
 * 
 * @author xyy
 * @date 2024-01-16
 */
@Data
@TableName("report_fill_data")
@ApiModel(value="report_fill_data表映射对象", description="")
public class ReportFillData implements Serializable {
	
	private static final long serialVersionUID = 7637410336287237330L;

	@ApiModelProperty(value = "填报数据id")
	@TableId(value = "filldata_id", type = IdType.ASSIGN_ID)
    private Long filldataId;

    @ApiModelProperty(value = "填报模板id")
    @TableField("templete_id")
    private Long templeteId;

    @ApiModelProperty(value = "填报模板名称")
    @TableField("templete_name")
    @Excel(name = "填报模板名称")
    private String templeteName;

    @ApiModelProperty(value = "填报人id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "填报人账号")
    @TableField("user_name")
    private String userName;
    
    @ApiModelProperty(value = "填报人名称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "填报内容")
    @TableField("fill_content")
    private String fillContent;

    @ApiModelProperty(value = "填报状态")
    @TableField("fill_status")
    @Excel(name = "填报状态", readConverterExp = "0=草稿,1=已完成")
    private String fillStatus;

    @ApiModelProperty(value = "填报时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "填报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty(value = "填报时间起")
    @TableField(exist=false)
    private String beginCreateTime;
    
    @ApiModelProperty(value = "填报时间止")
    @TableField(exist=false)
    private String endCreateTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;
	
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dataId", getFilldataId())
            .append("temepleteId", getTempleteId())
            .append("temepleteName", getTempleteName())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .append("fillContent", getFillContent())
            .append("fillStatus", getFillStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
